﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace State
{
    public class WorkState : State
    {
        public WorkState(Person person)
        {
            person.SetState(this);
            System.Console.WriteLine("I am work state.");
        }
        public void Write()
        {
            System.Console.WriteLine("I am working.I need to write something.");
        }
        public void Play()
        {
            System.Console.WriteLine("I am working.I cannot play any game.");
        }

    }
}
